/*
 * Copyright 2010 Marcin Blazejewski
 *
 * This file is part of Nofate.
 *
 * Nofate is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Nofate is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Nofate. If not, see <http://www.gnu.org/licenses/>.
 *
 */


#ifndef ACTION_H_
#define ACTION_H_

class Action {
public:
    int                       timer;
    class AreaMap             *area;
    class Creature            *cre;
    
    virtual ~Action() {}
    virtual int               start() = 0;
    virtual int               execute() = 0;
    int                       tick();
};

class MoveAction : public Action {
public:
    char dx, dy;

    MoveAction(char dx, char dy);
    virtual ~MoveAction() {}
    virtual int               start();
    virtual int               execute();
};

class AttributeAction : public Action {
public:
    int a;

    virtual ~AttributeAction() {}
    virtual int               start();
    virtual int               execute();
};


#endif
